﻿using Controller;
using Models;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HotelManager
{
    public static class StorePermission
    {
        private static int positionID;

        public static int PositionID
        {
            get { return StorePermission.positionID; }
            set { StorePermission.positionID = value; }
        }
        static List<TblPermissionsForm> colPer = new List<TblPermissionsForm>();
        static List<TblPermissionsForm> colPerOfUser = new List<TblPermissionsForm>();

        public static List<TblPermissionsForm> ColPerOfUser
        {
            get {
                PermissionFormController ctr = new PermissionFormController();
                colPerOfUser = ctr.GetAllDataByChucVu(positionID);
                return StorePermission.colPerOfUser; }
           
        }
        
        public static List<TblPermissionsForm> ColPer
        {
            get
            {
                PermissionFormController ctr = new PermissionFormController();
                return colPer = ctr.GetAllData();
            }
        }

        
        
    
    }
}
